#ifndef DAY_H
#define DAY_H

#include<iostream>
#include<vector>
#include<string>
#include <algorithm>
#include <iomanip>
#include"Meeting.h"

using namespace std;

class Day{
public:
	// default CTOR
	Day();

	// CTOR
	Day(const string& day);

	// add meeting to day
	virtual void addMeetingToDay(Meeting* meet);

	//delete meeting from day
	virtual void deleteMeetingFromDay(int startHour, int startMinute);

    //find meeting in day that start in specific time 
	 virtual int findMeetingInDay(int startHour, int startMinute)const;

	//print out meeting in place i
	virtual void printOut(int i)const;

	//remove meeting from day without delete it
    virtual Meeting* removeMeetingFromDay(int startHour, int startMinute);

	//get the vector of meeting
	virtual const vector<Meeting*>& getVec ()const;

	//delete all meeting from day
	virtual void deleteAll();

	//printout
	virtual void printOut()const;

	//check intersection
	virtual bool checkIntersaction(Meeting* meet)const;

	// DTOR
	virtual ~Day();


protected:

	vector <Meeting*> dayMeeting;           // the meeting in this day
	string dayOfWeek;                       // day of week



private:

	Day(const Day&);	                // no copy 
	void operator=(Day&);		        // no copy 


}; 

#endif
